package com.wcar.examine.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcar.common.entity.ProductExamine;
import com.wcar.common.vo.Result;
import com.wcar.examine.service.ExamineService;
import com.wcar.examine.vo.ExamineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/examine")
public class ExamineController {
    @Autowired
    private ExamineService examineService;
    @PostMapping("/select")
    public Result<Page<ProductExamine>> select(@RequestBody ExamineVo examineVo){
        return examineService.selectExamine(examineVo);
    }
    @PostMapping("/updateExamine")
    public Result updateExamine(@RequestBody ProductExamine productExamine){
        return examineService.updateExamine(productExamine);
    }
}
